package com.ruoyi.docdraw.mapper;

import java.util.List;
import com.ruoyi.docdraw.domain.SysSubProjectFolder;
import org.apache.ibatis.annotations.Param;

/**
 * 子项目文件夹Mapper接口
 * 
 * @author lvtian
 * @date 2025-04-14
 */
public interface SysSubProjectFolderMapper 
{
    /**
     * 查询子项目文件夹
     * 
     * @param subFolderId 子项目文件夹主键
     * @return 子项目文件夹
     */
    public SysSubProjectFolder selectSysSubProjectFolderBySubFolderId(Long subFolderId);

    /**
     * 查询子项目文件夹列表
     * 
     * @param sysSubProjectFolder 子项目文件夹
     * @return 子项目文件夹集合
     */
    public List<SysSubProjectFolder> selectSysSubProjectFolderList(SysSubProjectFolder sysSubProjectFolder);

    /**
     * 新增子项目文件夹
     * 
     * @param sysSubProjectFolder 子项目文件夹
     * @return 结果
     */
    public int insertSysSubProjectFolder(SysSubProjectFolder sysSubProjectFolder);

    /**
     * 修改子项目文件夹
     * 
     * @param sysSubProjectFolder 子项目文件夹
     * @return 结果
     */
    public int updateSysSubProjectFolder(SysSubProjectFolder sysSubProjectFolder);

    /**
     * 删除子项目文件夹
     * 
     * @param subFolderId 子项目文件夹主键
     * @return 结果
     */
    public int deleteSysSubProjectFolderBySubFolderId(Long subFolderId);

    /**
     * 批量删除子项目文件夹
     * 
     * @param subFolderIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysSubProjectFolderBySubFolderIds(Long[] subFolderIds);
    /**
     * 检查子项目下文件夹名称是否重复
     * @param subFolderName
     * @param subProjectId
     * @return
     */
    public SysSubProjectFolder checkSubProjectFolderNameUnique(@Param("subFolderName") String subFolderName, @Param("subProjectId") Long subProjectId);
}
